/*
 * Copyright:  2018 smarabbit studio.
 *
 *  Licensed under the Confluent Community License; you may not use this file
 *  except in compliance with the License.  You may obtain a copy of the License at
 *
 *  http://www.confluent.io/confluent-community-license
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 *  WARRANTIES OF ANY KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations under the License.
 *
 *  @作   者： 黄开晖 (117227773@qq.com)
 *  @日   期:  2021年5月28日
 */
package com.massyframework.beanskin;

import com.massyframework.beanskin.assembly.AssemblyActivatedEvent;
import com.massyframework.beanskin.assembly.AssemblyDeactivatingEvent;
import com.massyframework.beanskin.assembly.AssemblyReadiedEvent;
import com.massyframework.beanskin.assembly.AssemblyUnreadyingEvent;
import com.massyframework.beanskin.license.LicenseBindedEvent;
import com.massyframework.beanskin.license.LicenseChangedEvent;
import com.massyframework.beanskin.license.LicenseToExpireEvent;
import com.massyframework.beanskin.license.LicenseUnbindedEvent;

/**
 * 模块监听器,支持监听以下模块事件:
 * <ul>
 * <li>已安装事件 {@link ModuleInstalledEvent} </li>
 * <li>已创建事件 {@link ModuleCreatedEvent} </li>
 * <li>正在销毁事件 {@link ModuleDestroyingEvent} </li>
 * </ul>
 * 支持监听以下装配件事件
 * <ul>
 * <li>已就绪事件 {@link AssemblyReadiedEvent} </li>
 * <li>已激活事件 {@link AssemblyActivatedEvent} </li>
 * <li>正在失活事件 {@link AssemblyDeactivatingEvent} </li>
 * <li>正在取消就绪事件 {@link AssemblyUnreadyingEvent} </li>
 * </ul>
 * 支持监听以下许可事件
 * <ul>
 * <li>许可绑定事件 {@link LicenseBindedEvent} </li>
 * <li>许可更改事件 {@link LicenseChangedEvent} </li>
 * <li>许可快到期事件 {@link LicenseToExpireEvent} </li>
 * <li>许可取消绑定事件 {@link LicenseUnbindedEvent} </li>
 * </ul>
 * @author huangkh
 *
 */
public interface ModuleListener {

	/**
	 * 当{@code event}事件发生时，对事件进行响应处理。
	 * @param event {@link ModuleEvent}
	 */
	void onEvent(ModuleEvent event);
}
